<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">


<ui:composition template="../templates/template.xhtml">

	<ui:define name="title">
	 	Set Court Date on Case
	</ui:define>
	<ui:param name="page" value="home" />

	<ui:define name="header">
		<ui:include src="../header.xhtml" />
	</ui:define>

	<ui:define name="menu">	
	<h:form>
	<div align="center">
			<br />
			<br />
				<h:commandButton value="Back" action="back" styleClass="buttonClass" />
			<br />
			<br />
			
		</div>
	</h:form>
	</ui:define>

	<ui:define name="body">
		<div style="padding: 20px;font-size: 20px;">
	<h:outputText value="Current Court Date: #{clerkUpdateCourtDateController.currentCourtDate}"/>
	
		<h:form id="updateCourtDate">
			<br/>			
			<br/>



			<h:outputLabel styleClass="outputText" value="New Court Date:"/>
			<br/>
			<t:inputDate				
				monthYearRowClass="yearMonthHeader"
							weekRowClass="weekHeader" 
							currentDayCellClass="currentDayCell" 
							id="date2" popupCalendar="true"
							value="#{clerkUpdateCourtDateController.proposedCourtDate}"							
							ampm="true"
							emptyMonthSelection="Select Month" 
                     		emptyAmpmSelection="AM/PM"
							type="both" />
			<br/>
			<h:outputLabel value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Day Month Year [Calendar] Hour Minutes"/>			
			<br/>
			<h:message for="date2" styleClass="error" />		
			<br/>
			<h:dataTable value="#{clerkUpdateCourtDateController.fields}" var="x">
				<h:column >
					<h:outputLabel value="#{x.name}:" />
				</h:column>
				<h:column>
					<h:inputText value="#{x.value}"/>
				</h:column>			
			</h:dataTable>		
			<br/>
			<h:commandButton action="#{clerkUpdateCourtDateController.submit}" value="Update Court Date"/>							
		</h:form>
	</div>
	</ui:define>
</ui:composition>

</html>
